
$(document).ready(function(){
	$.ajax({
        type:"GET",
        url:"/index.php?c=cron&a=userinfo",
        dataType:"json",
        success:function(data){
            console.log(data)
        	$(".dinshicontact").empty();
        	$(".dinshicontact3").empty();
            $.each(data, function(index, value) {
                var mess = "<a href='tel:" + value.tel +"'>商务咨询：" + value.tel + "  微信同步（" + value.manager + "）</a>";
                var mess2 = "<a class='font36' href='tel:" + value.tel +"'>T  " + value.tel + "  " + value.manager + "●</a>";
                var mess3 = "<span style='display:block' >商务咨询：" + value.tel + "  微信同步（" + value.manager + "）</span>";
                $(".dinshicontact").append(mess);
                $(".dinshicontact2").append(mess2);
                $(".dinshicontact3").append(mess3);
                var mediaH = $(window).height();
			    if(mediaH  > 1300){
			        $(".dinshicontact p, .dinshicontact a").css("font-size","28px");
			    }

            });
        },
        error:function(data){
           console.log("发生错误");
        }
   	});
});
